package com.zh.work.entity.agent;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@ApiModel(value = "代理商信息信息变更记录实体类")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("change_agent_account")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ChangeAgentAccount extends AgentInfoEntity{


  private static final long serialVersionUID = -8661137605138152502L;
  @ApiModelProperty(value = "主键", name = "id")
  @TableId(value = "id", type = IdType.AUTO)
  private Long id;

  @ApiModelProperty(value = "上级代理商号", name = "superAgentNo")
  @TableField(value = "superAgentno")
  private String superAgentNo;
  @ApiModelProperty(value = "原帐户类型 1-对私 2-对公", name = "origAccountType")
  private Integer origAccountType;
  @ApiModelProperty(value = "原账户号账号", name = "origAccountNo")
  @TableField(value = "origAccountno")
  private String origAccountNo;
  @ApiModelProperty(value = "原帐户户名", name = "origAccountName")
  private String origAccountName;
  @ApiModelProperty(value = "原开户行行号", name = "origBankNo")
  @TableField(value = "origBankno")
  private String origBankNo;
  @ApiModelProperty(value = "原银行名称", name = "origBankName")
  private String origBankName;
  @ApiModelProperty(value = "附件路径", name = "filePath")
  private String filePath;
  @ApiModelProperty(value = "审核代理商号", name = "auditAgent")
  private String auditAgent;
  @ApiModelProperty(value = "状态(1-待审核 2-审核拒绝 3-审核通过)", name = "auditStatus")
  private Integer auditStatus;
  @ApiModelProperty(value = "描述", name = "reason")
  private String reason;
  @ApiModelProperty(value = "操作员", name = "userName")
  private String userName;
  @ApiModelProperty(value = "变更时间", name = "addTime")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date addTime;
  @ApiModelProperty(value = "审核时间", name = "auditDate")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date auditDate;

}
